
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>类加载机制 · Aivin开发笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Aivin">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="内存模型.html" />
    
    
    <link rel="prev" href="JVM详解.html" />
    

    
        <link rel="shortcut icon" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    首页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../doc/常用网站.html">
            
                <a href="../doc/常用网站.html">
            
                    
                    常用网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../常用软件/常用软件和框架.html">
            
                <a href="../常用软件/常用软件和框架.html">
            
                    
                    常用软件和框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../doc/开发规范.html">
            
                <a href="../doc/开发规范.html">
            
                    
                    开发规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../doc/开源软件.html">
            
                <a href="../doc/开源软件.html">
            
                    
                    开源软件和框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../doc/Android常用代码.html">
            
                <a href="../doc/Android常用代码.html">
            
                    
                    Android常用代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../源码阅读/源码阅读配置.html">
            
                <a href="../源码阅读/源码阅读配置.html">
            
                    
                    源码阅读
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../源码阅读/其他框架源码.html">
            
                <a href="../源码阅读/其他框架源码.html">
            
                    
                    其他框架源码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../产品经理/产品经理.html">
            
                <a href="../产品经理/产品经理.html">
            
                    
                    产品经理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../设计模式/设计模式.html">
            
                <a href="../设计模式/设计模式.html">
            
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../设计模式/设计模式.html">
            
                <a href="../设计模式/设计模式.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../设计模式/模式详解.html">
            
                <a href="../设计模式/模式详解.html">
            
                    
                    模式详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../设计模式/mvc等.html">
            
                <a href="../设计模式/mvc等.html">
            
                    
                    mvc等
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../数据结构/常用数据结构.html">
            
                <a href="../数据结构/常用数据结构.html">
            
                    
                    基本算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../数据结构/常用数据结构.html">
            
                <a href="../数据结构/常用数据结构.html">
            
                    
                    常用数据结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../常用算法/算法术语.html">
            
                <a href="../常用算法/算法术语.html">
            
                    
                    算法术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../常用算法/排序算法.html">
            
                <a href="../常用算法/排序算法.html">
            
                    
                    排序算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../常用算法/查找算法.html">
            
                <a href="../常用算法/查找算法.html">
            
                    
                    查找算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../常用算法/大数相加.html">
            
                <a href="../常用算法/大数相加.html">
            
                    
                    大数相加
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.6" data-path="../常用算法/集合的所有子集.html">
            
                <a href="../常用算法/集合的所有子集.html">
            
                    
                    获得集合的所有子集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.7" data-path="../常用算法/扫描线种子填充算法.html">
            
                <a href="../常用算法/扫描线种子填充算法.html">
            
                    
                    扫描线种子填充算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.8" data-path="../常用算法/其他算法.html">
            
                <a href="../常用算法/其他算法.html">
            
                    
                    其他算法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="原码补码反码.html">
            
                <a href="原码补码反码.html">
            
                    
                    Java部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="原码补码反码.html">
            
                <a href="原码补码反码.html">
            
                    
                    原码补码反码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="java常用代码.html">
            
                <a href="java常用代码.html">
            
                    
                    java常用代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="JVM详解.html">
            
                <a href="JVM详解.html">
            
                    
                    JVM详解
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.11.4" data-path="类加载机制.html">
            
                <a href="类加载机制.html">
            
                    
                    类加载机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="内存模型.html">
            
                <a href="内存模型.html">
            
                    
                    内存模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="GC机制.html">
            
                <a href="GC机制.html">
            
                    
                    GC机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="对象内存布局.html">
            
                <a href="对象内存布局.html">
            
                    
                    对象内存布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="继承多态.html">
            
                <a href="继承多态.html">
            
                    
                    继承和多态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="相等判断.html">
            
                <a href="相等判断.html">
            
                    
                    相等判断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="Java容器类.html">
            
                <a href="Java容器类.html">
            
                    
                    Java容器类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.11" data-path="Java枚举.html">
            
                <a href="Java枚举.html">
            
                    
                    Java枚举
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.12" data-path="自定义异常.html">
            
                <a href="自定义异常.html">
            
                    
                    自定义异常
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.13" data-path="深度拷贝.html">
            
                <a href="深度拷贝.html">
            
                    
                    深度拷贝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.14" data-path="泛型详解.html">
            
                <a href="泛型详解.html">
            
                    
                    泛型详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.15" data-path="线程详解.html">
            
                <a href="线程详解.html">
            
                    
                    线程详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.16" data-path="java注解.html">
            
                <a href="java注解.html">
            
                    
                    注解详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.17" data-path="数据解析.html">
            
                <a href="数据解析.html">
            
                    
                    数据解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.18" data-path="java8新特性.html">
            
                <a href="java8新特性.html">
            
                    
                    Java8新特性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../android基础/android零散知识.html">
            
                <a href="../android基础/android零散知识.html">
            
                    
                    Android部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../android基础/基础控件使用.html">
            
                <a href="../android基础/基础控件使用.html">
            
                    
                    基础控件使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../android基础/android零散知识.html">
            
                <a href="../android基础/android零散知识.html">
            
                    
                    Android零散知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="../android基础/android坐标体系.html">
            
                <a href="../android基础/android坐标体系.html">
            
                    
                    Android坐标体系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="../android基础/APP的启动流程.html">
            
                <a href="../android基础/APP的启动流程.html">
            
                    
                    APP启动流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="../android基础/View加载流程.html">
            
                <a href="../android基础/View加载流程.html">
            
                    
                    View加载流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="../android基础/事件分发机制.html">
            
                <a href="../android基础/事件分发机制.html">
            
                    
                    事件分发机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="../android基础/控件绘制流程.html">
            
                <a href="../android基础/控件绘制流程.html">
            
                    
                    控件绘制流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.8" data-path="../android基础/常用shape.html">
            
                <a href="../android基础/常用shape.html">
            
                    
                    常用shape
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.9" data-path="../android基础/进程通信.html">
            
                <a href="../android基础/进程通信.html">
            
                    
                    进程通信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.10" data-path="../通信方式/通信方式详解.html">
            
                <a href="../通信方式/通信方式详解.html">
            
                    
                    通信方式详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.11" data-path="../android基础/Binder详解.html">
            
                <a href="../android基础/Binder详解.html">
            
                    
                    Binder详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.12" data-path="../android基础/Handler详解.html">
            
                <a href="../android基础/Handler详解.html">
            
                    
                    Handle详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.13" data-path="../android基础/Fragment详解.html">
            
                <a href="../android基础/Fragment详解.html">
            
                    
                    Fragment详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.14" data-path="../android基础/Activity详解.html">
            
                <a href="../android基础/Activity详解.html">
            
                    
                    Activity详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.15" data-path="../android基础/BroadcastReceiver.html">
            
                <a href="../android基础/BroadcastReceiver.html">
            
                    
                    BroadcastReceiver详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.16" data-path="../android基础/Service服务.html">
            
                <a href="../android基础/Service服务.html">
            
                    
                    Service详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.17" data-path="../android基础/动画详解.html">
            
                <a href="../android基础/动画详解.html">
            
                    
                    动画详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.18" data-path="../android基础/屏幕刷新机制.html">
            
                <a href="../android基础/屏幕刷新机制.html">
            
                    
                    屏幕刷新机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.19" data-path="../android基础/屏幕适配.html">
            
                <a href="../android基础/屏幕适配.html">
            
                    
                    屏幕适配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.20" data-path="../android基础/图片加载详解.html">
            
                <a href="../android基础/图片加载详解.html">
            
                    
                    图片加载详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.21" data-path="../android基础/WebView详解.html">
            
                <a href="../android基础/WebView详解.html">
            
                    
                    WebView详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.22" data-path="../android基础/沉浸式.html">
            
                <a href="../android基础/沉浸式.html">
            
                    
                    沉浸式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.23" data-path="../android基础/相机模块.html">
            
                <a href="../android基础/相机模块.html">
            
                    
                    相机模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.24" data-path="../android基础/地图模块.html">
            
                <a href="../android基础/地图模块.html">
            
                    
                    地图模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.25" data-path="../android基础/Androidstudio插件开发.html">
            
                <a href="../android基础/Androidstudio插件开发.html">
            
                    
                    Androidstudio插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.26" data-path="../android基础/Apk插件化开发.html">
            
                <a href="../android基础/Apk插件化开发.html">
            
                    
                    Apk插件化开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.27" data-path="../android基础/App组件化开发.html">
            
                <a href="../android基础/App组件化开发.html">
            
                    
                    App组件化开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.28" data-path="../android基础/sdk开发.html">
            
                <a href="../android基础/sdk开发.html">
            
                    
                    sdk开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.29" data-path="../android基础/APP优化.html">
            
                <a href="../android基础/APP优化.html">
            
                    
                    APP优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.30" data-path="../android基础/项目参数配置.html">
            
                <a href="../android基础/项目参数配置.html">
            
                    
                    项目参数配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.31" data-path="../android基础/App发布.html">
            
                <a href="../android基础/App发布.html">
            
                    
                    App发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.32" data-path="../android基础/Android外挂.html">
            
                <a href="../android基础/Android外挂.html">
            
                    
                    Android外挂
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.33" data-path="../android基础/Android字节码插桩.html">
            
                <a href="../android基础/Android字节码插桩.html">
            
                    
                    Android字节码插桩
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.34" data-path="../android基础/智能家居.html">
            
                <a href="../android基础/智能家居.html">
            
                    
                    智能家居
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../python/python基础.html">
            
                <a href="../python/python基础.html">
            
                    
                    python部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../python/python基础.html">
            
                <a href="../python/python基础.html">
            
                    
                    python基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../python/python爬虫.html">
            
                <a href="../python/python爬虫.html">
            
                    
                    python爬虫
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../gradle/Groovy.html">
            
                <a href="../gradle/Groovy.html">
            
                    
                    Groovy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../kotlin/kotlin部分.html">
            
                <a href="../kotlin/kotlin部分.html">
            
                    
                    kotlin部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../flutter/flutter部分.html">
            
                <a href="../flutter/flutter部分.html">
            
                    
                    flutter部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../native/ccpp.html">
            
                <a href="../native/ccpp.html">
            
                    
                    native部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../native/Linux.html">
            
                <a href="../native/Linux.html">
            
                    
                    Linux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../native/ccpp.html">
            
                <a href="../native/ccpp.html">
            
                    
                    cCpp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../native/NDK.html">
            
                <a href="../native/NDK.html">
            
                    
                    NDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../native/系统编译剪裁.html">
            
                <a href="../native/系统编译剪裁.html">
            
                    
                    系统编译剪裁
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.5" data-path="../native/音视频.html">
            
                <a href="../native/音视频.html">
            
                    
                    音视频
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.6" data-path="../native/音视频第三方库.html">
            
                <a href="../native/音视频第三方库.html">
            
                    
                    音视频第三方库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.7" data-path="../native/相关代码.html">
            
                <a href="../native/相关代码.html">
            
                    
                    相关代码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../server/服务器部分.html">
            
                <a href="../server/服务器部分.html">
            
                    
                    服务器部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../webDev/web部分.html">
            
                <a href="../webDev/web部分.html">
            
                    
                    web部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="../人工智能/人工智能相关概念.html">
            
                <a href="../人工智能/人工智能相关概念.html">
            
                    
                    人工智能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="../面试真题/极飞.html">
            
                <a href="../面试真题/极飞.html">
            
                    
                    面试真题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >类加载机制</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x7C7B;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;"><b>1. </b>&#x7C7B;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;</a></li><li><span class="title-icon "></span><a href="#java&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x5206;&#x7C7B;"><b>2. </b>java&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x5206;&#x7C7B;</a></li><ul><li><span class="title-icon "></span><a href="#&#x4ECE;&#x865A;&#x62DF;&#x673A;&#x5C42;&#x9762;&#x89D2;&#x5EA6;&#x5206;&#x7C7B;"><b>2.1. </b>&#x4ECE;&#x865A;&#x62DF;&#x673A;&#x5C42;&#x9762;&#x89D2;&#x5EA6;&#x5206;&#x7C7B;</a></li><li><span class="title-icon "></span><a href="#&#x4ECE;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;&#x89D2;&#x5EA6;&#x6765;&#x5206;&#x7C7B;"><b>2.2. </b>&#x4ECE;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;&#x89D2;&#x5EA6;&#x6765;&#x5206;&#x7C7B;</a></li><ul><li><span class="title-icon "></span><a href="#bootstrap-classloader"><b>2.2.1. </b>Bootstrap ClassLoader</a></li><li><span class="title-icon "></span><a href="#extclassloader"><b>2.2.2. </b>ExtClassLoader</a></li><li><span class="title-icon "></span><a href="#appclassloadersystemappclass"><b>2.2.3. </b>AppClassLoader(SystemAppClass)</a></li></ul></ul><li><span class="title-icon "></span><a href="#&#x7C7B;&#x52A0;&#x8F7D;&#x4E4B;&#x95F4;&#x7684;&#x7236;&#x5B50;&#x5173;&#x7CFB;&#x662F;&#x600E;&#x6837;&#x7684;"><b>3. </b>&#x7C7B;&#x52A0;&#x8F7D;&#x4E4B;&#x95F4;&#x7684;&#x7236;&#x5B50;&#x5173;&#x7CFB;&#x662F;&#x600E;&#x6837;&#x7684;</a></li><li><span class="title-icon "></span><a href="#&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;-&#x6A21;&#x578B;-&#xFF08;parent-delegation&#xFF09;"><b>4. </b>&#x53CC;&#x4EB2;&#x59D4;&#x6D3E; &#x6A21;&#x578B; &#xFF08;parent delegation&#xFF09;</a></li><ul><li><span class="title-icon "></span><a href="#&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x7528;&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;&#x6A21;&#x578B;"><b>4.1. </b>&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x7528;&#x201C;&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;&#x6A21;&#x578B;&#x201D;</a></li></ul><li><span class="title-icon "></span><a href="#&#x81EA;&#x5B9A;&#x4E49;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x7684;&#x610F;&#x4E49;&#x548C;&#x4F7F;&#x7528;&#x573A;&#x666F;"><b>5. </b>&#x81EA;&#x5B9A;&#x4E49;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x7684;&#x610F;&#x4E49;&#x548C;&#x4F7F;&#x7528;&#x573A;&#x666F;</a></li><li><span class="title-icon "></span><a href="#&#x89E6;&#x53D1;&#x7C7B;&#x52A0;&#x8F7D;&#x7684;&#x60C5;&#x51B5;--&#x7C7B;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x4F1A;&#x88AB;&#x52A0;&#x8F7D;"><b>6. </b>&#x89E6;&#x53D1;&#x7C7B;&#x52A0;&#x8F7D;&#x7684;&#x60C5;&#x51B5; / &#x7C7B;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x4F1A;&#x88AB;&#x52A0;&#x8F7D;</a></li><li><span class="title-icon "></span><a href="#&#x7C7B;&#x5BF9;&#x8C61;-&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;-&#x7684;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;"><b>7. </b>&#x7C7B;/&#x5BF9;&#x8C61; &#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5; &#x7684;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;</a></li><li><span class="title-icon "></span><a href="#android-&#x7684;-&#x7C7B;&#x52A0;&#x8F7D;&#x5668;"><b>8. </b>Android &#x7684; &#x7C7B;&#x52A0;&#x8F7D;&#x5668;</a></li><ul><li><span class="title-icon "></span><a href="#basedexclassloader-&#x3001;dexclassloader-&#x3001;pathclassloader"><b>8.1. </b>BaseDexClassLoader &#x3001;DexClassLoader &#x3001;PathClassLoader</a></li></ul></ul></div><a href="#&#x7C7B;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x7C7B;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;"><a name="&#x7C7B;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;" class="anchor-navigation-ex-anchor" href="#&#x7C7B;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x7C7B;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;</h1>
<p><img src="../pics/201802051138_osChina_&#x7C7B;&#x751F;&#x547D;&#x5468;&#x671F;.png" alt=""></p>
<h1 id="java&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x5206;&#x7C7B;"><a name="java&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x5206;&#x7C7B;" class="anchor-navigation-ex-anchor" href="#java&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x5206;&#x7C7B;"><i class="fa fa-link" aria-hidden="true"></i></a>2. java&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x5206;&#x7C7B;</h1>
<h2 id="&#x4ECE;&#x865A;&#x62DF;&#x673A;&#x5C42;&#x9762;&#x89D2;&#x5EA6;&#x5206;&#x7C7B;"><a name="&#x4ECE;&#x865A;&#x62DF;&#x673A;&#x5C42;&#x9762;&#x89D2;&#x5EA6;&#x5206;&#x7C7B;" class="anchor-navigation-ex-anchor" href="#&#x4ECE;&#x865A;&#x62DF;&#x673A;&#x5C42;&#x9762;&#x89D2;&#x5EA6;&#x5206;&#x7C7B;"><i class="fa fa-link" aria-hidden="true"></i></a>2.1. &#x4ECE;&#x865A;&#x62DF;&#x673A;&#x5C42;&#x9762;&#x89D2;&#x5EA6;&#x5206;&#x7C7B;</h2>
<pre><code class="lang-text">&#x4ECE;&#x865A;&#x62DF;&#x673A;&#x5C42;&#x9762;&#x89D2;&#x5EA6;&#x8BB2;,&#x5206;&#x4E3A;&#x4E24;&#x5927;&#x7C7B;&#x578B;&#x7684;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x3002;
&#x4E00;&#x662F; Bootstrap Classloader &#xFF0C;&#x5373;&#x542F;&#x52A8;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#xFF08;C++&#x5B9E;&#x73B0;&#xFF09;&#xFF0C;&#x5B83;&#x662F;&#x865A;&#x62DF;&#x673A;&#x7684;&#x4E00;&#x90E8;&#x5206;&#xFF0C;
&#x4E8C;&#x662F;&#x5176;&#x4ED6;&#x7C7B;&#x578B;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#xFF08;JAVA&#x5B9E;&#x73B0;&#xFF09;&#xFF0C;&#x5728;&#x865A;&#x62DF;&#x673A;&#x5916;&#x90E8;&#xFF0C;&#x5E76;&#x5168;&#x90E8;&#x7EE7;&#x627F; ClassLoader &#x7C7B;&#x3002;
</code></pre>
<p><img src="../pics/201802051139_osChina_&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x5206;&#x7C7B;.png" alt=""></p>
<h2 id="&#x4ECE;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;&#x89D2;&#x5EA6;&#x6765;&#x5206;&#x7C7B;"><a name="&#x4ECE;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;&#x89D2;&#x5EA6;&#x6765;&#x5206;&#x7C7B;" class="anchor-navigation-ex-anchor" href="#&#x4ECE;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;&#x89D2;&#x5EA6;&#x6765;&#x5206;&#x7C7B;"><i class="fa fa-link" aria-hidden="true"></i></a>2.2. &#x4ECE;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;&#x89D2;&#x5EA6;&#x6765;&#x5206;&#x7C7B;</h2>
<p><img src="../pics/201802051139_osChina_parent&#x59D4;&#x6258;&#x673A;&#x5236;.png" alt=""></p>
<h3 id="bootstrap-classloader"><a name="bootstrap-classloader" class="anchor-navigation-ex-anchor" href="#bootstrap-classloader"><i class="fa fa-link" aria-hidden="true"></i></a>2.2.1. Bootstrap ClassLoader</h3>
<pre><code class="lang-text">&#x4E3B;&#x8981;&#x8D1F;&#x8D23;&#x52A0;&#x8F7D;JVM&#x81EA;&#x8EAB;&#x5DE5;&#x4F5C;&#x6240;&#x9700;&#x8981;&#x7684;&#x7C7B;&#x3002;
&#x662F;&#x7531;C/C++&#x7F16;&#x5199;&#x7684;&#xFF0C;&#x5B83;&#x672C;&#x8EAB;&#x662F;&#x865A;&#x62DF;&#x673A;&#x7684;&#x4E00;&#x90E8;&#x5206;&#xFF0C;&#x5B83;&#x5E76;&#x4E0D;&#x662F;&#x4E00;&#x4E2A;JAVA&#x7C7B;&#xFF0C;&#x65E0;&#x6CD5;&#x5728;java&#x4EE3;&#x7801;&#x4E2D;&#x83B7;&#x53D6;&#x5B83;&#x7684;&#x5F15;&#x7528;&#x3002;
&#x6240;&#x4EE5;getClass().getName()&#x8FD4;&#x56DE;null&#x3002;

 System.out.println(System.getProperty(&quot;sun.boot.class.path&quot;));
 xxx\jre\lib\resources.jar;
 xxx\jre\lib\rt.jar;
 xxx\jre\lib\sunrsasign.jar;
 xxx\jre\lib\jsse.jar;
 xxx\jre\lib\jce.jar;
 xxx\jre\lib\charsets.jar;
 xxx\jre\lib\jfr.jar;
 xxx\jre\classes
</code></pre>
<h3 id="extclassloader"><a name="extclassloader" class="anchor-navigation-ex-anchor" href="#extclassloader"><i class="fa fa-link" aria-hidden="true"></i></a>2.2.2. ExtClassLoader</h3>
<pre><code class="lang-text">&#x8D1F;&#x8D23;&#x88C5;&#x8F7D;JRE&#x6269;&#x5C55;&#x76EE;&#x5F55;ext&#x4E0B;&#x7684;jar&#x7C7B;&#x5305;&#x3002;&#x4E00;&#x822C;&#x4E3A;JVM&#x5E73;&#x53F0;&#x6269;&#x5C55;&#x5DE5;&#x5177;&#x3002;

System.out.println(System.getProperty(&quot;java.ext.dirs&quot;));
xxx\jre\lib\ext;
C:\Windows\Sun\Java\lib\ext
</code></pre>
<h3 id="appclassloadersystemappclass"><a name="appclassloadersystemappclass" class="anchor-navigation-ex-anchor" href="#appclassloadersystemappclass"><i class="fa fa-link" aria-hidden="true"></i></a>2.2.3. AppClassLoader(SystemAppClass)</h3>
<pre><code class="lang-text">&#x5982;&#x679C;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x4E2D;&#x6CA1;&#x6709;&#x81EA;&#x5B9A;&#x4E49;&#x8FC7;&#x81EA;&#x5DF1;&#x7684;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#xFF0C;&#x4E00;&#x822C;&#x60C5;&#x51B5;&#x4E0B;&#x8FD9;&#x4E2A;&#x5C31;&#x662F;&#x7A0B;&#x5E8F;&#x4E2D;&#x9ED8;&#x8BA4;&#x7684;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x3002;
System.out.println(System.getProperty(&quot;java.class.path&quot;));

//&#x8FD9;&#x4E2A;&#x8DEF;&#x5F84;&#x5176;&#x5B9E;&#x5C31;&#x662F;&#x5F53;&#x524D;java&#x5DE5;&#x7A0B;&#x76EE;&#x5F55;bin&#xFF0C;&#x91CC;&#x9762;&#x5B58;&#x653E;&#x7684;&#x662F;&#x7F16;&#x8BD1;&#x751F;&#x6210;&#x7684;class&#x6587;&#x4EF6;&#x3002;
 F:\aivin_space\myEclipseSpace\MySample\bin
</code></pre>
<h1 id="&#x7C7B;&#x52A0;&#x8F7D;&#x4E4B;&#x95F4;&#x7684;&#x7236;&#x5B50;&#x5173;&#x7CFB;&#x662F;&#x600E;&#x6837;&#x7684;"><a name="&#x7C7B;&#x52A0;&#x8F7D;&#x4E4B;&#x95F4;&#x7684;&#x7236;&#x5B50;&#x5173;&#x7CFB;&#x662F;&#x600E;&#x6837;&#x7684;" class="anchor-navigation-ex-anchor" href="#&#x7C7B;&#x52A0;&#x8F7D;&#x4E4B;&#x95F4;&#x7684;&#x7236;&#x5B50;&#x5173;&#x7CFB;&#x662F;&#x600E;&#x6837;&#x7684;"><i class="fa fa-link" aria-hidden="true"></i></a>3. &#x7C7B;&#x52A0;&#x8F7D;&#x4E4B;&#x95F4;&#x7684;&#x7236;&#x5B50;&#x5173;&#x7CFB;&#x662F;&#x600E;&#x6837;&#x7684;</h1>
<p>&#x5B50;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x548C;&#x7236;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x7684;&#x5173;&#x7CFB;&#xFF0C;&#x662F;&#x59D4;&#x6D3E;&#x5173;&#x7CFB;&#x5E76;&#x4E0D;&#x662F;&#x7EE7;&#x627F;&#x5173;&#x7CFB;&#x3002;</p>
<h1 id="&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;-&#x6A21;&#x578B;-&#xFF08;parent-delegation&#xFF09;"><a name="&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;-&#x6A21;&#x578B;-&#xFF08;parent-delegation&#xFF09;" class="anchor-navigation-ex-anchor" href="#&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;-&#x6A21;&#x578B;-&#xFF08;parent-delegation&#xFF09;"><i class="fa fa-link" aria-hidden="true"></i></a>4. &#x53CC;&#x4EB2;&#x59D4;&#x6D3E; &#x6A21;&#x578B; &#xFF08;parent delegation&#xFF09;</h1>
<pre><code class="lang-text">&#x5728;&#x52A0;&#x8F7D;&#x7C7B;&#x522B;&#x65F6;&#xFF0C;&#x6BCF;&#x4E2A;&#x7C7B;&#x522B;&#x52A0;&#x8F7D;&#x5668;&#x4F1A;&#x5148;&#x5C06;&#x52A0;&#x8F7D;&#x7C7B;&#x522B;&#x7684;&#x4EFB;&#x52A1;&#x4EA4;&#x7531;&#x5176;parent&#xFF0C;
&#x5982;&#x679C;parent&#x627E;&#x4E0D;&#x5230;&#xFF0C;&#x624D;&#x7531;&#x81EA;&#x5DF1;&#x8D1F;&#x8D23;&#x52A0;&#x8F7D;&#xFF0C;
&#x5982;&#x679C;&#x81EA;&#x5DF1;&#x4E5F;&#x627E;&#x4E0D;&#x5230;&#xFF0C;&#x5C31;&#x4F1A;&#x4E22;&#x51FA; NoClassDefFoundError&#x3002;
</code></pre>
<h2 id="&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x7528;&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;&#x6A21;&#x578B;"><a name="&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x7528;&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;&#x6A21;&#x578B;" class="anchor-navigation-ex-anchor" href="#&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x7528;&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;&#x6A21;&#x578B;"><i class="fa fa-link" aria-hidden="true"></i></a>4.1. &#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x7528;&#x201C;&#x53CC;&#x4EB2;&#x59D4;&#x6D3E;&#x6A21;&#x578B;&#x201D;</h2>
<pre><code class="lang-text">&#x9632;&#x6B62;&#x5185;&#x5B58;&#x4E2D;&#x51FA;&#x73B0;&#x591A;&#x4EFD;&#x540C;&#x6837;&#x7684;&#x5B57;&#x8282;&#x7801; &#x3002;
&#x6BD4;&#x5982;&#x4E24;&#x4E2A;&#x7C7B;A&#x548C;&#x7C7B;B&#x90FD;&#x8981;&#x52A0;&#x8F7D;System&#x7C7B;&#xFF1A;
&#x5982;&#x679C;&#x4E0D;&#x7528;&#x59D4;&#x6258;&#x800C;&#x662F;&#x81EA;&#x5DF1;&#x52A0;&#x8F7D;&#x81EA;&#x5DF1;&#x7684;&#xFF0C;
&#x90A3;&#x4E48;&#x7C7B;A&#x5C31;&#x4F1A;&#x52A0;&#x8F7D;&#x4E00;&#x4EFD;System&#x5B57;&#x8282;&#x7801;&#xFF0C;
&#x7136;&#x540E;&#x7C7B;B&#x53C8;&#x4F1A;&#x52A0;&#x8F7D;&#x4E00;&#x4EFD;System&#x5B57;&#x8282;&#x7801;&#xFF0C;
&#x8FD9;&#x6837;&#x5185;&#x5B58;&#x4E2D;&#x5C31;&#x51FA;&#x73B0;&#x4E86;&#x4E24;&#x4EFD;System&#x5B57;&#x8282;&#x7801;&#x3002;
</code></pre>
<h1 id="&#x81EA;&#x5B9A;&#x4E49;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x7684;&#x610F;&#x4E49;&#x548C;&#x4F7F;&#x7528;&#x573A;&#x666F;"><a name="&#x81EA;&#x5B9A;&#x4E49;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x7684;&#x610F;&#x4E49;&#x548C;&#x4F7F;&#x7528;&#x573A;&#x666F;" class="anchor-navigation-ex-anchor" href="#&#x81EA;&#x5B9A;&#x4E49;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x7684;&#x610F;&#x4E49;&#x548C;&#x4F7F;&#x7528;&#x573A;&#x666F;"><i class="fa fa-link" aria-hidden="true"></i></a>5. &#x81EA;&#x5B9A;&#x4E49;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x7684;&#x610F;&#x4E49;&#x548C;&#x4F7F;&#x7528;&#x573A;&#x666F;</h1>
<pre><code class="lang-text">1&#x3001;&#x4E3A;&#x4E86;&#x5B9E;&#x73B0;jdk&#x7684;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x6CA1;&#x6709;&#x7684;&#x67D0;&#x4E9B;&#x529F;&#x80FD;&#x3002;
&#x4F8B;&#x5982;Tomcat&#x4F7F;&#x7528;&#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x5B9E;&#x73B0;&#x4E86;&#x70ED;&#x90E8;&#x7F72;&#x529F;&#x80FD;&#x3002;

2&#x3001;&#x5C06;java&#x5199;&#x7684;&#x6838;&#x5FC3;&#x4EE3;&#x7801;&#x7F16;&#x8BD1;&#x6210;.clas&#x6587;&#x4EF6;&#xFF0C;&#x7136;&#x540E;&#x5C06;lass&#x6587;&#x4EF6;&#x5C31;&#x52A0;&#x5BC6;&#x3002;&#x53EA;&#x6709;&#x4F7F;&#x7528;&#x5728;&#x81EA;&#x5DF1;&#x7684;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;&#x624D;&#x80FD;&#x6B63;&#x786E;&#x4F7F;&#x7528;&#x8FD9;&#x4E9B;&#x6838;&#x5FC3;&#x4EE3;&#x7801;&#x3002;
(&#x56E0;&#x4E3A;&#x53EA;&#x8981;&#x83B7;&#x5F97;&#x4E86;&#x8FD9;&#x4E2A;&#x52A0;&#x8F7D;&#x5668;&#xFF0C;&#x6838;&#x5FC3;&#x4EE3;&#x7801;&#x5C31;&#x53EF;&#x4EE5;&#x8F7B;&#x6613;&#x88AB;&#x83B7;&#x53D6;&#x3002; &#x6240;&#x4EE5;&#x8981;&#x4FDD;&#x62A4;&#x597D;&#x81EA;&#x5DF1;&#x7684;&#x52A0;&#x8F7D;&#x5668;&#x3002;)
</code></pre>
<h1 id="&#x89E6;&#x53D1;&#x7C7B;&#x52A0;&#x8F7D;&#x7684;&#x60C5;&#x51B5;--&#x7C7B;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x4F1A;&#x88AB;&#x52A0;&#x8F7D;"><a name="&#x89E6;&#x53D1;&#x7C7B;&#x52A0;&#x8F7D;&#x7684;&#x60C5;&#x51B5;--&#x7C7B;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x4F1A;&#x88AB;&#x52A0;&#x8F7D;" class="anchor-navigation-ex-anchor" href="#&#x89E6;&#x53D1;&#x7C7B;&#x52A0;&#x8F7D;&#x7684;&#x60C5;&#x51B5;--&#x7C7B;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x4F1A;&#x88AB;&#x52A0;&#x8F7D;"><i class="fa fa-link" aria-hidden="true"></i></a>6. &#x89E6;&#x53D1;&#x7C7B;&#x52A0;&#x8F7D;&#x7684;&#x60C5;&#x51B5; / &#x7C7B;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x4F1A;&#x88AB;&#x52A0;&#x8F7D;</h1>
<pre><code class="lang-text">1&#x3001;&#x8C03;&#x7528;&#x9759;&#x6001;&#x6210;&#x5458;&#x65F6;&#xFF0C;&#x4F1A;&#x52A0;&#x8F7D;&#x9759;&#x6001;&#x6210;&#x5458;&#x771F;&#x6B63;&#x6240;&#x5728;&#x7684;&#x7C7B;&#x53CA;&#x5176;&#x7236;&#x7C7B;&#x3002; 
&#x4F8B;&#x5982;&#x901A;&#x8FC7;&#x5B50;&#x7C7B;&#x8C03;&#x7528;&#x7236;&#x7C7B;&#x7684;&#x9759;&#x6001;&#x6210;&#x5458;&#x65F6;&#xFF0C;&#x53EA;&#x4F1A;&#x52A0;&#x8F7D;&#x7236;&#x7C7B;&#x800C;&#x4E0D;&#x4F1A;&#x52A0;&#x8F7D;&#x5B50;&#x7C7B;&#x3002; 

2&#x3001;&#x7B2C;&#x4E00;&#x6B21; new &#x5BF9;&#x8C61;&#x7684;&#x65F6;&#x5019;&#x52A0;&#x8F7D;(&#x7B2C;&#x4E8C;&#x6B21;&#x518D; new &#x540C;&#x4E00;&#x4E2A;&#x7C7B;&#x65F6;&#xFF0C;&#x4E0D;&#x9700;&#x518D;&#x52A0;&#x8F7D;)&#x3002; 

3&#x3001;&#x52A0;&#x8F7D;&#x5B50;&#x7C7B;&#x4F1A;&#x5148;&#x52A0;&#x8F7D;&#x7236;&#x7C7B;&#x3002;

&#x6CE8;&#x610F;&#xFF1A;&#x5982;&#x679C;&#x9759;&#x6001;&#x5C5E;&#x6027;&#x88AB; final &#x4FEE;&#x9970;&#x65F6;&#xFF0C;&#x5219;&#x4E0D;&#x4F1A;&#x52A0;&#x8F7D;&#xFF0C;&#x5F53;&#x6210;&#x5E38;&#x91CF;&#x4F7F;&#x7528;&#x3002; 
&#x4F8B;&#xFF1A;public static final int a =123; 
&#x4F46;&#x662F;&#x5982;&#x679C;&#x4E0A;&#x9762;&#x7684;&#x7B49;&#x5F0F;&#x53F3;&#x503C;&#x6539;&#x6210;&#x8868;&#x8FBE;&#x5F0F;(&#x4E14;&#x8BE5;&#x8868;&#x8FBE;&#x5F0F;&#x5728;&#x7F16;&#x8BD1;&#x65F6;&#x4E0D;&#x80FD;&#x786E;&#x5B9A;&#x5176;&#x503C;)&#x65F6;&#x5219;&#x4F1A;&#x52A0;&#x8F7D;&#x7C7B;&#x3002; 
&#x4F8B;&#xFF1A;public static final int a = math.PI
</code></pre>
<h1 id="&#x7C7B;&#x5BF9;&#x8C61;-&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;-&#x7684;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;"><a name="&#x7C7B;&#x5BF9;&#x8C61;-&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;-&#x7684;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;" class="anchor-navigation-ex-anchor" href="#&#x7C7B;&#x5BF9;&#x8C61;-&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;-&#x7684;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;"><i class="fa fa-link" aria-hidden="true"></i></a>7. &#x7C7B;/&#x5BF9;&#x8C61; &#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5; &#x7684;&#x52A0;&#x8F7D;&#x987A;&#x5E8F;</h1>
<pre><code class="lang-text">1&#x3001;&#x7236;&#x7C7B;&#x9759;&#x6001;&#x5BF9;&#x8C61;&#x548C;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x5757;
&#x7C7B;&#x4E2D;&#x9759;&#x6001;&#x5757;&#x6309;&#x7167;&#x58F0;&#x660E;&#x987A;&#x5E8F;&#x6267;&#x884C;&#x3002;
2&#x3001;&#x5B50;&#x7C7B;&#x9759;&#x6001;&#x5BF9;&#x8C61;&#x548C;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x5757;
3&#x3001;&#x7236;&#x7C7B;&#x975E;&#x9759;&#x6001;&#x5BF9;&#x8C61;&#x548C;&#x975E;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x5757; 
4&#x3001;&#x7236;&#x7C7B;&#x6784;&#x9020;&#x51FD;&#x6570; 
5&#x3001;&#x5B50;&#x7C7B;&#x975E;&#x9759;&#x6001;&#x5BF9;&#x8C61;&#x548C;&#x975E;&#x9759;&#x6001;&#x4EE3;&#x7801;&#x5757;
6&#x3001;&#x5B50;&#x7C7B;&#x6784;&#x9020;&#x51FD;&#x6570; 

&#x9759;&#x6001;&#x7684;&#x4EE3;&#x7801;&#x5757;&#x3001;&#x5C5E;&#x6027;&#x3001;&#x65B9;&#x6CD5;&#x90FD;&#x4F1A;&#x5728;&#x7C7B;&#x52A0;&#x8F7D;&#x65F6;&#x52A0;&#x8F7D;&#xFF0C;&#x5B83;&#x4EEC;&#x7684;&#x52A0;&#x8F7D;&#x987A;&#x5E8F; &#x8DDF;&#x7A0B;&#x5E8F;&#x7F16;&#x5199;&#x987A;&#x5E8F;&#x76F8;&#x540C;&#x3002;
&#x5B9E;&#x4F8B;&#x5316;&#x4E00;&#x4E2A;&#x7C7B;&#x65F6;&#xFF0C;&#x4F1A;&#x5148;&#x52A0;&#x8F7D;&#x666E;&#x901A;&#x5C5E;&#x6027; &gt; &#x666E;&#x901A;&#x4EE3;&#x7801;&#x5757; &gt; &#x6784;&#x9020;&#x65B9;&#x6CD5; &gt; &#x666E;&#x901A;&#x65B9;&#x6CD5;&#x3002;
</code></pre>
<h1 id="android-&#x7684;-&#x7C7B;&#x52A0;&#x8F7D;&#x5668;"><a name="android-&#x7684;-&#x7C7B;&#x52A0;&#x8F7D;&#x5668;" class="anchor-navigation-ex-anchor" href="#android-&#x7684;-&#x7C7B;&#x52A0;&#x8F7D;&#x5668;"><i class="fa fa-link" aria-hidden="true"></i></a>8. Android &#x7684; &#x7C7B;&#x52A0;&#x8F7D;&#x5668;</h1>
<h2 id="basedexclassloader-&#x3001;dexclassloader-&#x3001;pathclassloader"><a name="basedexclassloader-&#x3001;dexclassloader-&#x3001;pathclassloader" class="anchor-navigation-ex-anchor" href="#basedexclassloader-&#x3001;dexclassloader-&#x3001;pathclassloader"><i class="fa fa-link" aria-hidden="true"></i></a>8.1. BaseDexClassLoader &#x3001;DexClassLoader &#x3001;PathClassLoader</h2>
<pre><code class="lang-text">PathClassLoader &#x4E3B;&#x8981;&#x662F;&#x7528;&#x6765;&#x52A0;&#x8F7D;&#x7CFB;&#x7EDF;&#x7C7B;&#x548C;&#x4E3B;Dex&#x4E2D;&#x7684;&#x7C7B;&#xFF0C;
DexClassLoader &#x4E3B;&#x8981;&#x662F;&#x7528;&#x6765;&#x52A0;&#x8F7D;&#x5176;&#x4ED6;Dex&#x6587;&#x4EF6;&#x7684;&#x7C7B;&#x3002;
</code></pre>
<p><img src="../pics/android&#x7C7B;&#x52A0;&#x8F7D;&#x5668;.png" alt=""></p>
<footer class="page-footer"><span class="copyright">( no Copyright&#xFF0C;enjoy youself ! ) all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">The file was updated at :
2022-04-04 10:49:02
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="JVM详解.html" class="navigation navigation-prev " aria-label="Previous page: JVM详解">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="内存模型.html" class="navigation navigation-next " aria-label="Next page: 内存模型">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"类加载机制","level":"1.11.4","depth":2,"next":{"title":"内存模型","level":"1.11.5","depth":2,"path":"chinese/java基础/内存模型.md","ref":"chinese/java基础/内存模型.md","articles":[]},"previous":{"title":"JVM详解","level":"1.11.3","depth":2,"path":"chinese/java基础/JVM详解.md","ref":"chinese/java基础/JVM详解.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","search-plus","todo","anchor-navigation-ex","copy-code-button","fontsettings","tbfed-pagefooter","local-video","splitter","expandable-chapters","favicon","theme-comscore","local-video"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"( no Copyright，enjoy youself ! )","modify_label":"The file was updated at :","modify_format":"YYYY-MM-DD HH:mm:ss"},"todo":{},"splitter":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"family":"sans","size":2,"theme":"white"},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"favicon":{"shortcut":"assets/images/favicon.ico","bookmark":"assets/images/favicon.ico"},"theme-comscore":{},"local-video":{},"copy-code-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"Aivin","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Aivin开发笔记","language":"zh-hans","gitbook":"*","description":"Aivin开发笔记"},"file":{"path":"chinese/java基础/类加载机制.md","mtime":"2022-04-04T02:49:02.764Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-04-04T03:47:09.782Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

